Is it good practice to catch multiple exceptions in a single try-catch block in Java